<?php
	$id = $_GET["id"];
	require_once 'connect.php';
	
	$sth = $pdo->prepare("select * from news where news_id='".$id."'");
	$sth->execute();
	$result = $sth->fetchAll();
	
	foreach ($result as $row){

		echo '
			<h2 id="contentTitle">'.$row["title"].'</h2>
					<img class="newsImage" src="'.$row["image"].'" border="1"/>
			<p class="newsContent">'.$row["content"].'</p>
		
		';
	}
	
	
	

?>